	
  const {mongoose ,Schema} = require('../../daoconfig');
    //#region  题目
	const titleschema = new Schema({
        /* 发布者用户id */
        userid: {type: Schema.Types.ObjectId, ref: 'user'},
        /* 题目类型   1,单选,2问答,3多选,4判断,5填空*/  
        // typeNumber: {type: Schema.Types.ObjectId, ref: 'tittleType'}, 
         typeNumber: String, 
        /* 科目ID */
      //   知识点id
       point: [{type: Schema.Types.ObjectId, ref: 'point'}], 
      //  professionid:{type: Schema.Types.ObjectId, ref: 'profession'},
       xuekeid:{type: Schema.Types.ObjectId, ref: 'xueke'},
       kemuid:{type: Schema.Types.ObjectId, ref: 'kemu'},


        /* 问题 */ 
        ques:String,
        ans:String,
        /* 问题选项 */
       select:[{
          // 选项
          "sel":{ type: String},
          // 是否是正确选项的标记
          "isr":{ type: Number},
        }],
        /* 答案解析 */
        jiexi:String,
        /* 发布时间 */
        publishdate:{type: Date, default: Date.now},
          //校验状态-审题,是由专业人士校验
       jiaoyan:{type: Number, default:0},
      //  审核状态,-0 未审核, 1审核通过 ,2审核不通过,重新提交
      shenhe:{type: Number, default:0}
      });



module.exports={
  titleschema
}
